public class ipController {


    private String searchTerm = '%';
    //private List<Contact> conts;

    public PageReference doSearch() {
      //conts = new List<Contact>();
      //conts =  [Select Id, AccountId, FirstName, LastName, Account.Name From Contact Where LastName Like :searchTerm or FirstName Like :searchTerm Limit 10];
      return null;
    }


    public String getSearchTerm() {
      return null;
    }
    public void setSearchTerm(String t) {
      searchTerm = t + '%';
    }

  
  public List<Contact> getContacts() {
      return [Select Id, AccountId, FirstName, LastName, Account.Name From Contact Where LastName Like :searchTerm or FirstName Like :searchTerm Limit 10];
  }

}